







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Removes all the items in collection from the bag. Items that
are not present in the bag are ignored.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public int RemoveMany( IEnumerable<T> collection ) |
Visual Basic (Declaration) |
---|
Public Function RemoveMany ( _ collection As IEnumerable(Of T) _ ) As Integer |
Visual C++ |
---|
public: int RemoveMany ( IEnumerable<T>^ collection ) |
Parameters
- collection
- IEnumerable<(Of <T>)>
A collection of items to remove from the bag.
Return Value
The number of items removed from the bag.
Remarks
Equality between items is determined by the comparer instance used to create the bag.
Removing the collection takes time O(M), where M is the number of items in collection.
Exceptions
Exception | Condition |
---|---|
System..::ArgumentNullException | collection is null. |
See Also
Bag<(Of <T>)> Class
Wintellect.PowerCollections Namespace